home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
smrtconf.zip
/
CONF.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-05-28
|
4KB
|
226 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
;------------------------------------------------------------------------------
FOpen 1, PPEPath() + "Conf.Cfg", 0, 0
FGet 1, INTEGER001
INTEGER002 = Ferr(1)
If (INTEGER002) Goto LABEL012
FGet 1, STRING005
INTEGER002 = Ferr(1)
If (INTEGER002) Goto LABEL012
FGet 1, STRING008
INTEGER002 = Ferr(1)
If (INTEGER002) Goto LABEL012
STRING008 = Trim(STRING008, " ")
FClose 1
:LABEL001
GetToken STRING006
STRING007 = ""
While (STRING006 <> "") Do
STRING007 = STRING007 + " " + STRING006
STRING006 = ""
GetToken STRING006
EndWhile
If (STRING007 <> "") Goto LABEL010
STRING004 = ""
INTEGER004 = 0
Newline
PrintLn "@X1E @BOARDNAME@@POS:70@@X08"
PrintLn "@X1E@POS:70@@X08"
PrintLn "@X1E You can (@X1CS@X1E)can@X1E for a conference topic @POS:70@@X08"
PrintLn "@X1E (@X1CL@X1E)ist@X1E the entire Conference Directory@POS:70@@X08"
PrintLn "@X1E (@X1CN@X1E)ame or Number of Conference to Join@POS:70@@X08"
PrintLn "@X1E (@X1CQ@X1E)uit@X1E to the @CONFNAME@ @POS:70@@X07"
PrintLn "@X1E @POS:70@@X07"
PrintLn ""
InputStr "@X0E(@X0CS@X0E)can list (@X0CL@X0E)ist conference directory (@X0CN@X0E)ame or # to join (@X0CQ@X0E)uit", STRING004, 14, 1, "LlSsNnQqHh?", 64
STRING004 = Upper(STRING004)
If (STRING004 == "S") Goto LABEL004
If (STRING004 == "L") Goto LABEL003
If (STRING004 == "N") Goto LABEL010
If ((STRING004 == "H") || (STRING004 == "?")) Goto LABEL011
If (STRING004 == "Q") Goto LABEL002
Goto LABEL001
:LABEL002
Log "User ended the CONF user command", 0
End
:LABEL003
PrintLn ""
PrintLn "@X1E The entire conference list will take " + STRING008 + " screens.@POS:70@@X07"
PrintLn ""
InputStr "Do you wish to display the entire conference list? (@X0CY@X0E/@X0Cn@X0E)", STRING003, 14, 1, "YyNn", 16384
If (Upper(STRING003) == "N") Goto LABEL001
PrintLn ""
DispFile STRING005, ""
Log "Displayed the CNFN file", 0
Goto LABEL007
:LABEL004
PrintLn "@X1E@POS:78@@X07"
PrintLn "@X1E This option will allow you to enter a string to scan the conference @POS:78@@X07"
PrintLn "@X1E list and display those conferences which contain the string entry. @POS:78@@X07"
PrintLn "@X1E@POS:78@@X07"
PrintLn "@X1E Example Keywords: Microsoft, DOS, Windows, Chat, DV, Source, Modem@POS:78@@X07"
PrintLn "@X1E@POS:78@@X07"
PrintLn "@X1E Enter up to eight (8) characters to search for.@POS:78@@X07"
PrintLn "@X1E@POS:78@@X07"
PrintLn ""
STRING001 = ""
InputText "@X0EEnter the Text to Find", STRING001, 14, 8
If (STRING001 == "") Goto LABEL001
STRING001 = Upper(STRING001)
FOpen 1, STRING005, 0, 0
Log "Searched CNFN file for " + STRING001, 0
Cls
Gosub LABEL006
If (INTEGER004) Goto LABEL007
INTEGER004 = 0
:LABEL005
Gosub LABEL009
If (INTEGER004) Goto LABEL007
If (InStr(Upper(STRING002), Upper(STRING001))) Then
Gosub LABEL008
If (INTEGER002 || Abort()) Goto LABEL007
Endif
Goto LABEL005
:LABEL006
INTEGER004 = 0
If (INTEGER001 > 0) Then
For INTEGER003 = 0 To INTEGER001
Gosub LABEL009
If (INTEGER004 == 1) Then
Return
Endif
PrintLn STRING002
If (INTEGER002 || Abort()) Then
INTEGER004 = 1
Return
Endif
Next
Endif
Return
:LABEL007
FClose 1
PrintLn "@X0CEnd of list.....@X07"
Wait
STRING002 = ""
Goto LABEL001
:LABEL008
PrintLn "@X0B", STRING002
Return
:LABEL009
FGet 1, STRING002
INTEGER002 = Ferr(1)
If (INTEGER002 || Abort()) INTEGER004 = 1
Return
:LABEL010
STRING001 = ""
If (STRING007 == "") InputText "@X0EEnter the Conference Number or Name to Join", STRING001, 14, 8
If ((STRING001 == "") && (STRING007 == "")) Goto LABEL001
If (STRING001 <> "") Join STRING001
STRING007 = Trim(STRING007, " ")
If (STRING007 <> "") Join STRING007
End
:LABEL011
DispFile HelpPath() + "Hlpj", ""
Wait
Goto LABEL001
:LABEL012
FClose 1
PrintLn "Error Reading Config File" + PPEPath() + "Conf.Cfg"
Log "Error Reading Config File" + PPEPath() + "Conf.Cfg", 0
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 3 End
; 1 Cls
; 2 Wait
; 28 Goto
; 22 Let
; 25 PrintLn
; 25 If
; 2 DispFile
; 2 FOpen
; 3 FClose
; 4 FGet
; 4 Log
; 2 InputStr
; 4 Gosub
; 5 Return
; 1 Newline
; 2 GetToken
; 2 InputText
; 2 Join
;
;
; ■ Functions used :
;
; 12 +
; 12 ==
; 4 <>
; 1 <
; 1 <=
; 1 >
; 2 >=
; 6 !
; 3 &&
; 5 ||
; 5 Upper()
; 4 Ferr()
; 1 InStr()
; 3 Abort()
; 2 Trim()
; 3 PPEPath()
; 1 HelpPath()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 1 While/EndWhile
; 4 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------